package com.grandtech.insurance.domain;

import java.io.Serializable;
import java.util.List;

/**
 * @author 
 * null
 */
public class SysAdminarea implements Serializable {
    private String qhdm;

    private String qhmc;

    private String arealevel;

    private String coid;

    private String env;

    private String qp;

    private String szm;

    private List children;

    public List getChildren() {
        return children;
    }

    public void setChildren(List children) {
        this.children = children;
    }

    public String getQp() {
        return qp;
    }

    public void setQp(String qp) {
        this.qp = qp;
    }

    public String getSzm() {
        return szm;
    }

    public void setSzm(String szm) {
        this.szm = szm;
    }

    private static final long serialVersionUID = 1L;

    public String getQhdm() {
        return qhdm;
    }

    public void setQhdm(String qhdm) {
        this.qhdm = qhdm;
    }

    public String getQhmc() {
        return qhmc;
    }

    public void setQhmc(String qhmc) {
        this.qhmc = qhmc;
    }

    public String getArealevel() {
        return arealevel;
    }

    public void setArealevel(String arealevel) {
        this.arealevel = arealevel;
    }

    public String getCoid() {
        return coid;
    }

    public void setCoid(String coid) {
        this.coid = coid;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysAdminarea other = (SysAdminarea) that;
        return (this.getQhdm() == null ? other.getQhdm() == null : this.getQhdm().equals(other.getQhdm()))
            && (this.getQhmc() == null ? other.getQhmc() == null : this.getQhmc().equals(other.getQhmc()))
            && (this.getArealevel() == null ? other.getArealevel() == null : this.getArealevel().equals(other.getArealevel()))
            && (this.getCoid() == null ? other.getCoid() == null : this.getCoid().equals(other.getCoid()))
            && (this.getEnv() == null ? other.getEnv() == null : this.getEnv().equals(other.getEnv()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getQhdm() == null) ? 0 : getQhdm().hashCode());
        result = prime * result + ((getQhmc() == null) ? 0 : getQhmc().hashCode());
        result = prime * result + ((getArealevel() == null) ? 0 : getArealevel().hashCode());
        result = prime * result + ((getCoid() == null) ? 0 : getCoid().hashCode());
        result = prime * result + ((getEnv() == null) ? 0 : getEnv().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", qhdm=").append(qhdm);
        sb.append(", qhmc=").append(qhmc);
        sb.append(", arealevel=").append(arealevel);
        sb.append(", coid=").append(coid);
        sb.append(", env=").append(env);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}